package user.zc.action.comp;

import javax.swing.*;

/**
 * @author zhouchuang
 * @date 2023/8/11 14:13
 */
public class ITextField extends JTextField implements IField{
    private String label;
    private String defaultValue;
    public ITextField(String label,String name,String defaultText,int columns){
        super(defaultText,columns);
        setName(name);
        this.label = label;
        this.defaultValue  = defaultText;
    }

    @Override
    public String getLabel() {
        return this.label;
    }

    @Override
    public String getDefaultValue() {
        return this.defaultValue;
    }
}
